if (typeof String.prototype.startsWith != 'function') {
	String.prototype.startsWith = function(str) {
		return (this.match("^"+str)==str) ;
	} ;
}

if (typeof String.prototype.endsWith != 'function') {
	String.prototype.endsWith = function(str) {
		return (this.match(str+"$")==str) ;
	} ;
}